package com.woniuxy.userapp.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.commons.util.Result;
import com.woniuxy.userapp.infra.model.mapper.model.BackgroundAccount;
import com.woniuxy.userapp.infra.model.mapper.model.Role;
import com.woniuxy.userapp.infra.model.mapper.model.dto.GetRoleListDto;
import com.woniuxy.userapp.service.dto.UserDto;
import org.springframework.web.HttpRequestMethodNotSupportedException;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 
 * @since 2022-08-03
 */
public interface BackgroundAccountService extends IService<BackgroundAccount> {

    //根据用户名获取基本信息
    UserDto loadUserByUsername(String userName);

    //根据id获取其角色权限集合
    List<GetRoleListDto> getRoleList(Integer id);


    //登录
    Result login(String username, String password) throws HttpRequestMethodNotSupportedException;



}
